// Copyright 2011, Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package jku.mobcomp.helper;

import com.google.appengine.api.blobstore.BlobKey;



/**
 * Constants
 * 
 */
public class Const {

  public static final String CHARSET_UTF8		= "utf-8";
	  
  public static final String ENTITY_Country 		= "Country";
  public static final String ENTITY_Boulder 		= "Boulder";
  public static final String ENTITY_BoulderResult 	= "BoulderResult";
  public static final String ENTITY_Rating  		= "Rating";

  public static final String PROP_keyId          = "keyId";
  public static final String PROP_name           = "name";
  public static final String PROP_description    = "description";
  public static final String PROP_grade          = "grade";
  public static final String PROP_lat            = "lat";
  public static final String PROP_lon            = "lon";
  public static final String PROP_line           = "line";
  public static final String PROP_countryID      = "countryId";
  public static final String PROP_distance       = "distance";
  public static final String PROP_avgFun         = "avgFun";
  public static final String PROP_countRatings   = "countRatings";
  public static final String PROP_countGrade0    = "countGrade0";
  public static final String PROP_countGrade1    = "countGrade1";
  public static final String PROP_countGrade2    = "countGrade2";
  public static final String PROP_user           = "user";
  public static final String PROP_date           = "date";
  public static final String PROP_ratingGrade    = "ratingGrade";
  public static final String PROP_ratingFun      = "ratingFun";
  public static final String PROP_boulderId      = "boulderId";
  public static final String PROP_imageCleanKeyFull   = "imageKeyFull";
  public static final String PROP_imageCleanKeyLarge  = "imageKeyLarge";
  public static final String PROP_imageCleanKeyMedium = "imageKeyMedium";
  public static final String PROP_imageCleanKeySmall  = "imageKeySmall";
  public static final String PROP_imageCleanPathFull  = "imagePathFull";
  public static final String PROP_imageCleanPathLarge = "imagePathLarge";
  public static final String PROP_imageCleanPathMedium= "imagePathMedium";
  public static final String PROP_imageCleanPathSmall = "imagePathSmall";
  public static final String PROP_imageLineKeyFull    = "imageLineKeyFull";
  public static final String PROP_imageLineKeyLarge   = "imageLineKeyLarge";
  public static final String PROP_imageLineKeyMedium  = "imageLineKeyMedium";
  public static final String PROP_imageLineKeySmall   = "imageLineKeySmall";
  public static final String PROP_imageLinePathFull   = "imageLinePathFull";
  public static final String PROP_imageLinePathLarge  = "imageLinePathLarge";
  public static final String PROP_imageLinePathMedium = "imageLinePathMedium";
  public static final String PROP_imageLinePathSmall  = "imageLinePathSmall";
  public static final String PROP_imageType      = "imageType";
  public static final String PROP_ratingAccepted = "ratingAccepted";
  public static final String PROP_ratingDone 	 = "ratingDone";

  public static final String IMAGESIZE_full      = "full";
  public static final String IMAGESIZE_large     = "large";
  public static final String IMAGESIZE_medium    = "medium";
  public static final String IMAGESIZE_small     = "small";
  
  // resize: high doesnt matter; it is no restriction
  // so the desired with is set and the hight is more than available
  // allowStrech=false; the not filled dimension is automatically cutted 
  // (here always the height)

  public static final int    IMAGESIZE_resizeQuality    = 10;  // 0=bad to 100 = good - dft:85
  public static final int    IMAGESIZE_smallHeight     	= 36;
  public static final int    IMAGESIZE_smallWidth       = 48;
  public static final int    IMAGESIZE_mediumHeight     = 180;  // 360  lt.MArtin
  public static final int    IMAGESIZE_mediumWidth      = 240;  // 480
  public static final int    IMAGESIZE_largeHeight      = 768;  // 768
  public static final int    IMAGESIZE_largeWidth       = 1024;  // 1024
  public static final boolean IMAGESIZE_allowStretch    = false;
  public static final String IMAGECLEANPATHSTART     = "/image/";
  public static final String IMAGELINEPATHSTART     = "/imageline/";
  

  public static final String SORTBY_distance     = "distance";
  public static final String SORTBY_date         = "date";
  public static final String SORTBY_name         = "name";
  public static final String SORTBY_avgFun       = "avgFun";
  
  
}